﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class HideObjRecord : BiffRecord
    {
        enum HideObjEnum: ushort 
        {
            ShowAll =  0x0000,
 
ShowPlaceholder
 = 0x0001,
 
HideAll
=  0x0002
 

        }

        private HideObjEnum _value;
        protected override void ReadContent(BiffReaderContext context, int length)
        {
            _value = (HideObjEnum) context.ReadUInt16();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.HideObj; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Writer.Write((ushort) _value);
        }
    }
}